      Namespaces    C:\Users\KatachiHome\AppData\Roaming\MAXON\CINEMA 4D R13_05DFD2A0\plugins\DPIT Plants & Effex 2.0\res\help\EN\Effex\fx_api_global_namespace.html   D                                                                                                                                            (   default.tif                  Object Header   The Effex API is defined in its own namespace to avoid any conflicts with any other code or library you may use.
The following namespaces are important to know about if you want to use the Effex API in your plugin project.
<br></br>

<b>NOTE: </b><i>We highly suggest NOT to use "use namespace FXAPI". This avoids any library conflicts and makes your code clearer to read anyway (especially when you only come back to it at a later time)..</i>          [code]NAVIE_GLOBAL    qThis is the global namespace of Navie products. <br>
Everyday things like vectors are defined in this namesapce.                    [code]NAVIE_GLOBAL::NAVIE_EFFEX    iThis is the global namespace of Effex. <br>
Global Effex specific classes are defined and declared here.                   +[code]NAVIE_GLOBAL::NAVIE_EFFEX::NAVIE_API   This is the namespace of the API for Cinema 4D. All the classes for interacting with Effex are in this namespace.
So whenever you have an object starting with FX (e.g. FXParticle) you can be sure you need to include the API namespace in your definition:
<br></br>
<span style="color:rgb(74,100,127);">NAVIE_GLOBAL::NAVIE_EFFEX::NAVIE_API::</span><span style="color:rgb(140,0,0);">FXParticle</span>
<br></br>
As this can be intriguing code wise we define a preprocessor macro as <span style="color:rgb(140,0,0);">FXAPI</span> so instead write:
<br></br>
<span style="color:rgb(74,100,127);">FXAPI::</span><span style="color:rgb(140,0,0);">FXParticle</span>                   
[code]std    The Effex API also uses the std namespace and the C++ standard template library (STL).
Mostly you will come across vector containers.                                  